/* 
 * File:   exclusao_mutua.h
 * Author: Marcos Moresco e Michelly
 *
 * Created on October 26, 2012, 2:52 PM
 */

#ifndef EXCLUSAO_MUTUA_H
#define	EXCLUSAO_MUTUA_H

#ifdef	__cplusplus
extern "C" {
#endif


    void enable_interrupts();
    
    void disable_interrupts();
    
    lock(int M);
    
    unlock(int M);
    
    void DesabilitandoInterrupcoes(Processo *p);
    
    int sleep2();
    
    void VarTrava(Processo *p);
    


#ifdef	__cplusplus
}
#endif

#endif	/* EXCLUSAO_MUTUA_H */

